package org.example.java8.methodquato;

import java.util.function.Supplier;

public class Worker {
	
	public static Worker born(final Supplier<Worker> supplier) {
		return supplier.get();
	}

	public static void staticWorker(final Worker worker) {
		System.out.println("静态方法: " + worker.toString());
	}
	
	public void codeWorker(final Worker worker) {
		System.out.println("实例方法: " + worker.toString());
	}
	
	public void normalWorker() {
		System.out.println("普通方法: " + this.toString());
	}
}
